package com.job.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.job.common.ResponseResult;
import com.job.common.enums.ResultCodeEnum;
import com.job.common.exception.ParameterIsNullException;
import com.job.common.exception.UserException;
import com.job.controller.req.ChatRecordsVO;
import com.job.controller.req.ReadMessageVO;
import com.job.controller.resp.UnreadRespVO;
import com.job.pojo.Message;

import java.util.ArrayList;

public interface MessageService{
    ResponseResult<ArrayList<UnreadRespVO>> QueryUnreadList(Integer userId) throws UserException, ParameterIsNullException;

    ResponseResult<ResultCodeEnum> read(ReadMessageVO messageVO) throws ParameterIsNullException;

    ResponseResult<Page<Message>> queryChatRecords(ChatRecordsVO chatRecordsVO);
}
